package day09;

public class Inherit {
    public static void main(String[] args) {
        Haski dog1=new Haski();
        Shappi dog2=new Shappi();
        ChineseDog dog3=new ChineseDog();
        dog1.eat();
        dog1.drink();
        dog1.protect();
        dog1.destroy();
        dog2.eat();
        dog2.drink();
        dog2.protect();
        dog3.eat();
        dog3.drink();
        dog3.protect();
    }
}
